﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LotAttributeQuery.aspx.cs" Inherits="WMS6.Web.Inventory.LotAttributeQuery" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>LotAttributeQuery</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>   
    <base target="_self" />      
    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            var actionID = window.dialogArguments;
            if(actionID != "" && actionID != null)
            {
                document.getElementById("hdnActionID").value = actionID;
                var array = actionID.split(',');
                initQueryPage(array[0],array[1]);
            }
            else
            {
                initQueryPage();
            }
        }
        
        //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
	    
	    //弹出窗口选择货品
        function selectSKU()
        {
            var rtnValue = popModalWindow('../Configuration/SKUQuery.aspx?action=txtSkuID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtSkuID").focus();
                document.getElementById("txtSkuID").value = rtnValue;
            }
        }
        
        //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
	    
    </script>
</head>
<body>
    <form id="F5070" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblLotAttribute" runat="server" Text="批次属性" CssClass="hover" 
                    meta:resourcekey="lblLotAttribute"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
        </div>
        <div id="div_query">
            <table width="580px" cellpadding="0" cellspacing="0">
                <tr>
                    <td style="width:180px">
                        <asp:Label CssClass="label" ID="lblOwnerID" runat="server" Text="货主代码" 
                            meta:resourcekey="lblOwnerID"></asp:Label>
                    </td>
                    <td style="width:30px">
                        &nbsp;
                    </td>
                    <td style="width:160px">
                     &nbsp;
                    </td>
                    <td style="width:200px"></td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"/>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOwnerIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlOwnerIDOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblSkuID" runat="server" Text="货品代码" 
                            meta:resourcekey="lblSkuID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtSkuID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtSkuID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectSKU();"/>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlSkuIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlSkuIDOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblLotID" runat="server" Text="批次号" 
                            meta:resourcekey="lblLotID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtLotID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtLotID"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlLotIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlLotIDOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExternalLotID" runat="server" Text="外部批号" 
                            meta:resourcekey="lblExternalLotID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExternalLotID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExternalLotID"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExternalLotIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlExternalLotIDOper">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblVendorID" runat="server" Text="供应商代码" 
                            meta:resourcekey="lblVendorID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtVendorID"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlVendorID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlVendorID">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttr01" runat="server" Text="批次属性01" 
                            meta:resourcekey="lblAttr01"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttr01" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttr01"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttr01" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttr01">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttr02" runat="server" Text="批次属性02" 
                            meta:resourcekey="lblAttr02"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttr02" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttr02"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttr02" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttr02">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri03" runat="server" Text="批次属性03" 
                            meta:resourcekey="lblAttri03"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri03" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri03"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri03" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri03">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri04" runat="server" Text="批次属性04" 
                            meta:resourcekey="lblAttri04"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri04" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri04"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri04" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri04">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri05" runat="server" Text="批次属性05" 
                            meta:resourcekey="lblAttri05"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri05" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri05"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri05" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri05">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri06" runat="server" Text="批次属性06" 
                            meta:resourcekey="lblAttri06"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri06" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri06"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri06" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri06">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri07" runat="server" Text="批次属性07" 
                            meta:resourcekey="lblAttri07"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri07" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri07"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri07" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri07">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri08" runat="server" Text="批次属性08" 
                            meta:resourcekey="lblAttri08"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri08" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri08"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri08" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri08">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri09" runat="server" Text="批次属性09" 
                            meta:resourcekey="lblAttri09"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri09" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri09"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri09" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri09">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblAttri10" runat="server" Text="批次属性10" 
                            meta:resourcekey="lblAttri10"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtAttri10" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtAttri10"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlAttri10" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlAttri10">
                        </asp:DropDownList>
                    </td>
                    <td></td>
                </tr>
                
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblProductDate" runat="server" Text="生产日期" 
                            meta:resourcekey="lblProductDate"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtProductDate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtProductDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtProductDate)" />

                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlProductDateOper" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" 
                            meta:resourcekey="ddlProductDateOper">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div1">
                            <asp:TextBox ID="txtProductDate2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtProductDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img2" runat="server" onclick="setday(this,txtProductDate2)"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExpiryDate" runat="server" Text="失效日期" 
                            meta:resourcekey="lblExpiryDate"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExpiryDate" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExpiryDate"></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtExpiryDate)" />

                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExpiryDateOper" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div2,img3);" 
                            meta:resourcekey="ddlExpiryDateOper">
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div2">
                            <asp:TextBox ID="txtExpiryDate2" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtExpiryDate2"></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img3" runat="server" onclick="setday(this,txtExpiryDate2)"/>
                        </div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblReceiptDate" runat="server" Text="入库日期" ></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtReceiptDate" runat="server" CssClass="textbox" ></asp:TextBox><img  src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtReceiptDate)" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlReceiptDate" runat="server" CssClass="selectbox" 
                            onchange="showAnotherDate(this.options[this.options.selectedIndex].value,div1,img2);" >
                        </asp:DropDownList>
                    </td>
                    <td>
                        <div style="display:none;" id="div3">
                            <asp:TextBox ID="txtReceiptDate2" runat="server" CssClass="textbox" ></asp:TextBox><img src="../Images/calendar.gif" class="img" alt="请选择日期" id="img1" runat="server" onclick="setday(this,txtReceiptDate2)"/>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button"  
                            onclick="btnSearch_Click" Enabled="False" />
                    </td>                    
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button"  
                            onclick="btnList_Click"  Enabled="False" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button"  
                            Enabled="False" 
                            OnClientClick="javascript:window.location.href='LotAttributeList.aspx?from=query&export=y';return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
        <input type="hidden" id="hdnDataFormat"  runat="server"/>  
<input type="hidden" id="hdncalendarFlag"  runat="server"/>  

    </div>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript" event="onclick" for="document">
		<!--
			hiddenCalendarDiv();
		//-->
</script>
